package gov.chinatax.ctcps.generator.dao.pojo;

import java.io.Serializable;
import java.math.BigDecimal;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

/** 
 *        @hibernate.class
 *         table="XTGL_YWZT"
 *     
*/
public class XtglYwzt implements Serializable {

    /** identifier field */
    private String ywztbh;

    /** nullable persistent field */
    private String ywmc;
    
    /** nullable persistent field */
    private String ywbz;

    /** nullable persistent field */
    private String czkssj;
    
    /** nullable persistent field */
    private String czjssj;

    /** nullable persistent field */
    private String ywztDm;

    /** nullable persistent field */
    private BigDecimal ywjd;

    /** nullable persistent field */
    private String dwbh;

    /** nullable persistent field */
    private String czyxm;

    /** nullable persistent field */
    private String bz;

    /** nullable persistent field */
    private String zt2;

    /** nullable persistent field */
    private String zt3;

    

    public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	public String getCzjssj() {
		return czjssj;
	}

	public void setCzjssj(String czjssj) {
		this.czjssj = czjssj;
	}

	public String getCzkssj() {
		return czkssj;
	}

	public void setCzkssj(String czkssj) {
		this.czkssj = czkssj;
	}

	public String getCzyxm() {
		return czyxm;
	}

	public void setCzyxm(String czyxm) {
		this.czyxm = czyxm;
	}

	public String getDwbh() {
		return dwbh;
	}

	public void setDwbh(String dwbh) {
		this.dwbh = dwbh;
	}

	public String getYwbz() {
		return ywbz;
	}

	public void setYwbz(String ywbz) {
		this.ywbz = ywbz;
	}

	public BigDecimal getYwjd() {
		return ywjd;
	}

	public void setYwjd(BigDecimal ywjd) {
		this.ywjd = ywjd;
	}

	public String getYwmc() {
		return ywmc;
	}

	public void setYwmc(String ywmc) {
		this.ywmc = ywmc;
	}

	public String getYwztbh() {
		return ywztbh;
	}

	public void setYwztbh(String ywztbh) {
		this.ywztbh = ywztbh;
	}

	public String getYwztDm() {
		return ywztDm;
	}

	public void setYwztDm(String ywztDm) {
		this.ywztDm = ywztDm;
	}

	public String getZt2() {
		return zt2;
	}

	public void setZt2(String zt2) {
		this.zt2 = zt2;
	}

	public String getZt3() {
		return zt3;
	}

	public void setZt3(String zt3) {
		this.zt3 = zt3;
	}

	public XtglYwzt(String ywztbh, String ywmc, String ywbz, String czkssj, String czjssj, String ywztDm, BigDecimal ywjd, String dwbh, String czyxm, String bz, String zt2, String zt3) {
		super();
		// TODO Auto-generated constructor stub
		this.ywztbh = ywztbh;
		this.ywmc = ywmc;
		this.ywbz = ywbz;
		this.czkssj = czkssj;
		this.czjssj = czjssj;
		this.ywztDm = ywztDm;
		this.ywjd = ywjd;
		this.dwbh = dwbh;
		this.czyxm = czyxm;
		this.bz = bz;
		this.zt2 = zt2;
		this.zt3 = zt3;
	}
	public XtglYwzt() {
		super();
		
	}

	public String toString() {
        return new ToStringBuilder(this)
            .append("ywztbh", getYwztbh())
            .toString();
    }

    public boolean equals(Object other) {
        if ( !(other instanceof XtglYwzt) ) return false;
        XtglYwzt castOther = (XtglYwzt) other;
        return new EqualsBuilder()
            .append(this.getYwztbh(), castOther.getYwztbh())
            .isEquals();
    }

    public int hashCode() {
        return new HashCodeBuilder()
            .append(getYwztbh())
            .toHashCode();
    }

}
